
import 'package:shortmovieapp/data/localData.dart';
import 'package:shortmovieapp/data/userData.dart';
import 'package:shortmovieapp/data/viewData.dart';

class appController {
//单例
  static appController? _instance;
  factory appController() {
    _instance ??= appController._();
    return _instance!;
  }
  appController._(){
    initialize();
  }

  late LocalData localData;
  late User user;

  void initialize(){
      localData = LocalData.readLocalData();
      user = User(1, "无名", 0);
  }

  List<TypeMovieItems>? recommendedPageData;
}